
const express = require('express');
// 路由器           express.Router()创建一个路由器
const userRouter = express.Router();
// 用户列表   GET  /userlist
// 添加用户   GET  /useradd
// 删除用户   GET  /userdelete
userRouter.get('/userlist',(request,response)=>{
    response.send('<h1>用户列表页</h1>');
})
userRouter.get('/useradd',(request,response)=>{
    response.send('<h1>添加用户页</h1>');
})
userRouter.get('/userdelete',(request,response)=>{
    response.send('<h1>用户删除页</h1>');
})

module.exports = userRouter;
